package httpx

import (
	"gitee.com/go-wena/json"
)

// ProcessJSON 以JSON格式映射下载流到结构指针
func ProcessJSON(v interface{}) ProcessFunc {
	return ProcessBytes(func(data []byte) error { return json.Unmarshal(data, v) })
}
